package com.mmd.admin.model.pojo.request.mer;

import com.mmd.base.utils.CollectionUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Set;

@Data
@ApiModel("MER-机构端添加编辑角色")
public class MerRoleAddOrEditParam {
    @ApiModelProperty(value = "主键")
    private Long roleId = 0L;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty(value = "角色描述")
    @NotBlank(message = "角色描述不能为空")
    private String remark;

    @ApiModelProperty("菜单ids")
    @NotEmpty(message = "菜单ids不能为空")
    private Set<Long> menuIds = CollectionUtils.emptySet();

}
